package com.interauto.bean;

/**
 * 记录断言结果的bean
 */
public class AutoAssertInfoBean {
    /**
     * 记录是否通过的状态。
     * 0=成功;1=断言没通过;2=系统异常;3=本身入参格式错误
     */
    private int codetype;
    /**
     * 错误原因
     */
    private String errormessage;

    public AutoAssertInfoBean(int codetype, String errormessage) {
        this.codetype = codetype;
        this.errormessage = errormessage;
    }

    public AutoAssertInfoBean() {
    }

    public int getCodetype() {
        return codetype;
    }

    public void setCodetype(int codetype) {
        this.codetype = codetype;
    }

    public String getErrormessage() {
        return errormessage;
    }

    public void setErrormessage(String errormessage) {
        this.errormessage = errormessage;
    }

    @Override
    public String toString() {
        return "AutoAssertInfoBean{" +
                "codetype=" + codetype +
                ", errormessage='" + errormessage + '\'' +
                '}';
    }
}
